﻿package com.reyco1.util
{
	/*
	class
	*/
	public class ClassUtil
	{
		/*
		static functions
		*/
		
		/**
		 * Returns the Class name of the provided class in a brace format
		 * @param $class : class to format
		 * @return 
		 * 
		 */		
		public static function displayClassName($class:Object):String
		{
			return "[" + ClassUtil.className($class) + "] : ";
		}
		
		/**
		 * Returns the clean class name
		 * @param $class : class to format
		 * @return 
		 * 
		 */		
		public static function className($class:Object):String
		{
			return $class.toString().substring($class.toString().indexOf(" ")+1, $class.toString().length-1)
		}
	}
}